<extend name="Public/base" />
<block name="body">
  <div class="main-title cf">
    <h2>客户日志 [{$info.name} , {$info.phone}]</h2>
  </div>
  
  <!-- 标签页导航 -->
  <div class="tab-wrap">
    <div class="tab-content"> 
      <!-- 表单 -->
      <form id="form" action="" method="post" class="form-horizontal doc-modal-form">
        <!-- 基础 -->
        <div id="tab1" class="tab-pane in tab1">
          <div class="form-item cf">
            <label class="item-label">跟进时间</label>
            <div class="controls">
              <input type="text" class="text"  placeholder="点击选择跟进时间" name="add_time" value="" id="add_time">
            </div>
          </div>
          <div class="form-item cf">
            <label class="item-label">跟进内容<span class="check-tips"></span></label>
            <div class="controls">
              <label class="textarea input-large">
                <textarea name="content" placeholder="例：给客户打电话，已有合作意向">{$info.content}</textarea>
              </label>
            </div>
          </div>
        </div>
        <!-- 按钮 -->
        <div class="form-item cf">

          <div class="controls edit_sort_btn">
          	<input type="hidden" name="cid" value="{$cid}" />
            <button class="btn submit-btn ajax-post no-refresh" type="submit" target-form="form-horizontal">添 加</button>
          </div>
        </div>
      </form>
    </div>
    <br>
    <div>
     <h3 style="margin-bottom:8px;">跟进日志<span class="check-tips"></span></h3>
     <style>
	 .log li{ height:30px; line-height:30px; color:#666}
.bcloer{background-color: #f8f8f8;} 
.blue{background: #bcd4ec; cursor:pointer} 


	 </style>
     	<div style="background:#FFF; padding:10px 10px 10px 5px;overflow:hidden; border: #eeeeee 1px double;" class="log">
             <notempty name="_list">
        <div style="width:10px; float:left; overflow:hidden; color:#999">
        ┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊<br />┊
        </div>
        <div>
        <ul>
          <volist name="_list" id="vo">
        	<li>┈┈<span style="color:#666">{$vo.add_time}</span>&nbsp;&nbsp;<span>{$vo.content}</span>&nbsp;&nbsp;<span><a style=" display:none"class="confirm ajax-get" href="{:U('CustomerLog/del', 'id='.$vo['id'])}">删除</a></span></li>
            </volist>
        </ul>

        </div>
        
    	          <else/>
        <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
        </div>
          <div class="page"> {$_page} </div>
    </div>
  </div>
  
</block>
<block name="script"> 
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
  <script type="text/javascript" charset="utf-8">
    //导航高亮
    highlight_subnav('{:U('CustomerLog/index')}');
	    $('#add_time').datetimepicker({
        format: 'yyyy-mm-dd hh:ii',
        language:"zh-CN",
	    minView:1,
	    autoclose:true
    });
		

 $(document).ready(function () {  
        $(".log li:odd").attr("class", "bcloer");
		  $(".log li").hover(function () {  
            $(this).addClass("blue");
			$(this).find('a').css({ display: "inherit"});
        }, function () {  
            $(this).removeClass("blue");  
			$(this).find('a').css({ display: "none"});
        });  
    })  
</script> 
</block>
